﻿<navigation:Page 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                 xmlns:my="clr-namespace:Candy"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
                 	 xmlns:infra="clr-namespace:Candy.Infrastructure"
           xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" 
    xmlns:tlk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
    x:Class="Candy.ThemeTestPage"
           mc:Ignorable="d"
           d:DesignWidth="928" d:DesignHeight="778"
           Title="ThemeTestPage Page"  >
    <navigation:Page.DataContext>
        <my:ThemeTestViewModel/>
    </navigation:Page.DataContext>
    <Grid x:Name="LayoutRoot" Background="{StaticResource WindowBackground}">



        <sdk:TabControl Margin="8,9,8,8" Style="{StaticResource DefaultTabControl}">

            <sdk:TabItem Header="Basic Controls" Style="{StaticResource DefaultTabItem}" >
                <Border Margin="0">
                    <Grid Margin="0">
                        <TextBlock TextWrapping="Wrap" Text="DefaultLabel"  HorizontalAlignment="Left" VerticalAlignment="Top" Margin="9,13,0,0"/>
                        <Button Content="Button Normal" HorizontalAlignment="Left" Margin="10,39,0,0" VerticalAlignment="Top"  />
                        <Button Content="Button Disabled" Margin="144,39,0,0" VerticalAlignment="Top" IsEnabled="False" HorizontalAlignment="Left" />
                        <HyperlinkButton Content="Chromeless HyperLink Accent" Height="21" Margin="9,69,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="210"/>
                        <HyperlinkButton Content="Chromeless HyperLink Disabled" Margin="526,69,0,0" VerticalAlignment="Top"  IsEnabled="False" Background="Transparent" HorizontalAlignment="Left"/>
                        <HyperlinkButton Content="Chromeless HyperLink Foreground" Margin="268,69,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Foreground="{StaticResource Foreground}"/>
                        <TextBox HorizontalAlignment="Left" Margin="26,225,0,0" TextWrapping="Wrap" Text="{Binding TestValidation, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}"  Padding="2,3"  VerticalAlignment="Top" Width="193" />
                        <TextBox HorizontalAlignment="Left" Margin="26,343,0,0" TextWrapping="Wrap" Text="Readonly TextBox" Width="193"  IsReadOnly="True" VerticalAlignment="Top"/>
                        <TextBox HorizontalAlignment="Left" Margin="26,273,0,0" TextWrapping="Wrap" Text="Disabled TextBox" Width="193" IsEnabled="False" VerticalAlignment="Top"/>
                        <TextBox HorizontalAlignment="Left" Margin="26,385,0,0" TextWrapping="Wrap" Text="Wrapping readonly borderless TextBox. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas porttitor congue massa. Fusce posuere, magna sed pulvinar ultricies, purus lectus malesuada libero, sit amet commodo magna eros quis urna.  Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas porttitor congue massa. Fusce posuere, magna sed pulvinar ultricies, purus lectus malesuada libero, sit amet commodo magna eros quis urna." Width="300" Style="{StaticResource DefaultTextBox}" BorderThickness="0" HorizontalScrollBarVisibility="Visible" AcceptsReturn="True" VerticalScrollBarVisibility="Auto" IsReadOnly="True" VerticalAlignment="Top" Height="150"/>
                        <ProgressBar HorizontalAlignment="Left" Margin="362,212,0,0" VerticalAlignment="Top" Width="244" Style="{StaticResource DefaultProgressBar}" IsIndeterminate="True"/>
                        <PasswordBox HorizontalAlignment="Left" Margin="26,141,0,0" VerticalAlignment="Top" Width="193" Password="Password" />
                        <CheckBox Content="CheckBox" HorizontalAlignment="Left" Margin="450,202,0,0" VerticalAlignment="Top" IsChecked="True" Style="{StaticResource DefaultCheckBox}"/>
                        <RadioButton Content="RadioButton" HorizontalAlignment="Left" Margin="450,275,0,0" VerticalAlignment="Top" Style="{StaticResource DefaultRadioButton}" GroupName="A" IsThreeState="True"/>
                        <RadioButton Content="RadioButton" HorizontalAlignment="Left" Margin="450,302,0,0" VerticalAlignment="Top" Style="{StaticResource DefaultRadioButton}" GroupName="A" IsThreeState="True"/>
                        <RadioButton Content="RadioButton" HorizontalAlignment="Left" Margin="450,334,0,0" VerticalAlignment="Top" Style="{StaticResource DefaultRadioButton}" GroupName="A" IsThreeState="True"/>
                        <TextBox HorizontalAlignment="Left" Margin="26,184,0,0" TextWrapping="Wrap"  VerticalAlignment="Top" Width="193" Text="Normal TextBox" />
                        <Button HorizontalAlignment="Left" Margin="679,141,0,0" VerticalAlignment="Top" Style="{StaticResource IconButton}"  >
                            <Image Source="Icons/Reload.png" Stretch="None" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </Button>
                    </Grid>
                </Border>
            </sdk:TabItem>
            <sdk:TabItem Header="ScrollViewer" Style="{StaticResource DefaultTabItem}" VerticalAlignment="Stretch">
                <ScrollViewer Style="{StaticResource DefaultScrollViewer}" >
                    <Rectangle Height="662" StrokeThickness="1" Width="929" Fill="#FF0E6A34" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="74,264,0,136"/>
                </ScrollViewer>
            </sdk:TabItem>
            <sdk:TabItem Header="TabControl" Style="{StaticResource DefaultTabItem}"  >
                <Grid Background="{StaticResource WindowBackground}">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="229*"/>
                        <ColumnDefinition Width="227*"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="183*"/>
                        <RowDefinition Height="188*"/>
                    </Grid.RowDefinitions>
                    <sdk:TabControl Margin="8" Style="{StaticResource DefaultTabControl}">
                        <sdk:TabItem Header="Item 1" Style="{StaticResource DefaultTabItem}">
                            <TextBlock HorizontalAlignment="Center" Margin="0" TextWrapping="Wrap" Text="1" VerticalAlignment="Center" FontSize="133.333" Foreground="#FF7AC1FF"/>
                        </sdk:TabItem>
                        <sdk:TabItem Header="Item 2" Style="{StaticResource DefaultTabItem}" >
                            <TextBlock HorizontalAlignment="Center" Margin="0" TextWrapping="Wrap" Text="2" VerticalAlignment="Center" FontSize="133.333" Foreground="#FF8DD28A"/>
                        </sdk:TabItem>
                        <sdk:TabItem Header="Item 3" Style="{StaticResource DefaultTabItem}">
                            <TextBlock HorizontalAlignment="Center" Margin="0" TextWrapping="Wrap" Text="3" VerticalAlignment="Center" FontSize="133.333" Foreground="#FFF38B76"/>
                        </sdk:TabItem>
                        <sdk:TabItem Header="Item Disabled" Style="{StaticResource DefaultTabItem}" IsEnabled="False">
                            <TextBlock HorizontalAlignment="Center" Margin="0" TextWrapping="Wrap" Text="3" VerticalAlignment="Center" FontSize="133.333"/>
                        </sdk:TabItem>
                    </sdk:TabControl>
                    <sdk:TabControl Margin="8" Style="{StaticResource DefaultTabControl}" TabStripPlacement="Bottom" Grid.Column="2" SelectedIndex="1">
                        <sdk:TabItem Header="Item 1" Style="{StaticResource DefaultTabItem}">
                            <TextBlock HorizontalAlignment="Center" Margin="0" TextWrapping="Wrap" Text="1" VerticalAlignment="Center" FontSize="133.333" Foreground="#FF7AC1FF"/>
                        </sdk:TabItem>
                        <sdk:TabItem Header="Item 2" Style="{StaticResource DefaultTabItem}" >
                            <TextBlock HorizontalAlignment="Center" Margin="0" TextWrapping="Wrap" Text="2" VerticalAlignment="Center" FontSize="133.333" Foreground="#FF8DD28A"/>
                        </sdk:TabItem>
                        <sdk:TabItem Header="Item 3" Style="{StaticResource DefaultTabItem}">
                            <TextBlock HorizontalAlignment="Center" Margin="0" TextWrapping="Wrap" Text="3" VerticalAlignment="Center" FontSize="133.333" Foreground="#FFF38B76"/>
                        </sdk:TabItem>
                        <sdk:TabItem Header="Item Disabled" Style="{StaticResource DefaultTabItem}" IsEnabled="False">
                            <TextBlock HorizontalAlignment="Center" Margin="0" TextWrapping="Wrap" Text="3" VerticalAlignment="Center" FontSize="133.333"/>
                        </sdk:TabItem>
                    </sdk:TabControl>
                    <sdk:TabControl Margin="8" Style="{StaticResource DefaultTabControl}" TabStripPlacement="Left" Grid.Row="3" SelectedIndex="2">
                        <sdk:TabItem Header="Item 1" Style="{StaticResource DefaultTabItem}">
                            <TextBlock HorizontalAlignment="Center" Margin="0" TextWrapping="Wrap" Text="1" VerticalAlignment="Center" FontSize="133.333" Foreground="#FF7AC1FF"/>
                        </sdk:TabItem>
                        <sdk:TabItem Header="Item 2" Style="{StaticResource DefaultTabItem}" >
                            <TextBlock HorizontalAlignment="Center" Margin="0" TextWrapping="Wrap" Text="2" VerticalAlignment="Center" FontSize="133.333" Foreground="#FF8DD28A"/>
                        </sdk:TabItem>
                        <sdk:TabItem Header="Item 3" Style="{StaticResource DefaultTabItem}">
                            <TextBlock HorizontalAlignment="Center" Margin="0" TextWrapping="Wrap" Text="3" VerticalAlignment="Center" FontSize="133.333" Foreground="#FFF38B76"/>
                        </sdk:TabItem>
                        <sdk:TabItem Header="Item Disabled" Style="{StaticResource DefaultTabItem}" IsEnabled="False">
                            <TextBlock HorizontalAlignment="Center" Margin="0" TextWrapping="Wrap" Text="3" VerticalAlignment="Center" FontSize="133.333"/>
                        </sdk:TabItem>
                    </sdk:TabControl>
                    <sdk:TabControl Margin="8" Style="{StaticResource DefaultTabControl}" TabStripPlacement="Right" Grid.Row="1" Grid.Column="2" SelectedIndex="0">
                        <sdk:TabItem Header="Item 1" Style="{StaticResource DefaultTabItem}">
                            <TextBlock HorizontalAlignment="Center" Margin="0" TextWrapping="Wrap" Text="1" VerticalAlignment="Center" FontSize="133.333" Foreground="#FF7AC1FF"/>
                        </sdk:TabItem>
                        <sdk:TabItem Header="Item 2" Style="{StaticResource DefaultTabItem}" >
                            <TextBlock HorizontalAlignment="Center" Margin="0" TextWrapping="Wrap" Text="2" VerticalAlignment="Center" FontSize="133.333" Foreground="#FF8DD28A"/>
                        </sdk:TabItem>
                        <sdk:TabItem Header="Item 3" Style="{StaticResource DefaultTabItem}">
                            <TextBlock HorizontalAlignment="Center" Margin="0" TextWrapping="Wrap" Text="3" VerticalAlignment="Center" FontSize="133.333" Foreground="#FFF38B76"/>
                        </sdk:TabItem>
                        <sdk:TabItem Header="Item Disabled" Style="{StaticResource DefaultTabItem}" IsEnabled="False">
                            <TextBlock HorizontalAlignment="Center" Margin="0" TextWrapping="Wrap" Text="3" VerticalAlignment="Center" FontSize="133.333"/>
                        </sdk:TabItem>
                    </sdk:TabControl>



                </Grid>

            </sdk:TabItem>
            <sdk:TabItem Header="SDK">
                <Grid Background="#00000000">
                    <tlk:ContextMenuService.ContextMenu>
                        <tlk:ContextMenu Height="100" Style="{StaticResource DefaultContextMenu}" Margin="406,321,386,321">
                            <tlk:MenuItem Header="Blast"  />
                            <tlk:MenuItem Header="Add"/>
                            <tlk:MenuItem Header="Delete"/>
                        </tlk:ContextMenu>
                    </tlk:ContextMenuService.ContextMenu>
                    <sdk:TreeView HorizontalAlignment="Left" Margin="10,10,0,0" Width="200" Style="{StaticResource DefaultTreeView}" ItemContainerStyle="{StaticResource DefaultTreeViewItem}">
                        <sdk:TreeViewItem Header="Item1"  Style="{StaticResource DefaultTreeViewItem}">
                            <sdk:TreeViewItem Header="Item1.1" Style="{StaticResource DefaultTreeViewItem}"/>
                            <sdk:TreeViewItem Header="Item1.2" Style="{StaticResource DefaultTreeViewItem}"/>
                        </sdk:TreeViewItem>
                        <sdk:TreeViewItem Header="Item2"  Style="{StaticResource DefaultTreeViewItem}">
                            <sdk:TreeViewItem Header="Item2.1"  Style="{StaticResource DefaultTreeViewItem}"/>
                        </sdk:TreeViewItem>
                        <sdk:TreeViewItem Header="Item3"  Style="{StaticResource DefaultTreeViewItem}"/>
                    </sdk:TreeView>
                </Grid>
            </sdk:TabItem>
            <sdk:TabItem Header="Toolkit">
                <Grid Background="#00000000">
                    <tlk:ContextMenuService.ContextMenu>
                        <tlk:ContextMenu Height="100"  Margin="406,321,386,321">
                            <tlk:MenuItem Header="Blast"  />
                            <tlk:MenuItem Header="Add"/>
                            <tlk:MenuItem Header="Delete"/>
                        </tlk:ContextMenu>
                    </tlk:ContextMenuService.ContextMenu>
                    <tlk:ContextMenu Height="100" Style="{StaticResource DefaultContextMenu}" Margin="259,142,533,500">
                        <tlk:MenuItem Header="Blast"  />
                        <tlk:MenuItem Header="A"/>
                        <tlk:MenuItem Header="A"/>
						<tlk:Separator Style="{StaticResource DefaultSeparator}"/>
                        <tlk:MenuItem Header="MenuItem" HorizontalAlignment="Left"/>
                    </tlk:ContextMenu>
                </Grid>
            </sdk:TabItem>
        </sdk:TabControl>
        <ListBox HorizontalAlignment="Left" Height="301" Margin="450,437,0,0" VerticalAlignment="Top" Width="406" Style="{StaticResource DefaultListBox}" ItemContainerStyle="{StaticResource DefaultListBoxItem}">
        	<ListBoxItem Content="ListBoxItem" />
        	<ListBoxItem Content="ListBoxItem" />
        	<ListBoxItem Content="ListBoxItem" />
        </ListBox>

    </Grid>
</navigation:Page>
